package com.itrh.auth.controller;

import com.itrh.auth.dto.LoginDTO;
import com.itrh.org.service.IEmployeeService;
import com.itrh.org.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ClassName: LoginController
 *
 * @author XHU_WHY
 * @version V1.0
 * @since 2024/4/8 11:22
 */
@RestController
@RequestMapping("/login")
public class LoginController {
    @Resource
    private IEmployeeService employeeService;
    @PostMapping
    public Result login(@RequestBody LoginDTO loginDTO) {
        return employeeService.login(loginDTO);
    }
}
